package com.evil.application.pojo.dto.apply;

import cn.hutool.core.bean.BeanUtil;
import com.evil.application.pojo.entity.ApplicationApplySetting;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 应用提交设置 实体
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
@NoArgsConstructor
public class ApplicationApplySettingDTO {

    /**
     * id
     */
    private Long applicationApplySettingId;

    /**
     * 开启总提交限制(0:否, 1:是)
     */
    private Integer applyTotalLimitStatus;

    /**
     * 总提交限制数量
     */
    private Integer applyTotalLimit;

    /**
     * 开启月提交限制(0:否, 1:是)
     */
    private Integer applyMonthLimitStatus;

    /**
     * 月提交限制数量
     */
    private Integer applyMonthLimit;

    /**
     * 开启时间提交限制(0:否, 1:是)
     */
    private Integer applyTimeLimitStatus;

    /**
     * 开始时间
     */
    private Date applyLimitBeginTime;

    /**
     * 结束时间
     */
    private Date applyLimitEndTime;

    public ApplicationApplySettingDTO(ApplicationApplySetting applicationApplySetting) {
        BeanUtil.copyProperties(applicationApplySetting, this);
    }
}
